package com.rainwood.material.view;

import android.content.Context;
import android.util.AttributeSet;
import android.view.MotionEvent;

import androidx.annotation.NonNull;
import androidx.annotation.Nullable;
import androidx.appcompat.widget.AppCompatTextView;

/**
 * @auther : hhx
 * @date :  2021/3/5
 * @des :
 */
public class StateTextView  extends AppCompatTextView {
    private boolean isChoose;

    public StateTextView(@NonNull Context context) {
        super(context);
    }

    public StateTextView(@NonNull Context context, @Nullable AttributeSet attrs) {
        super(context, attrs);
    }

    public StateTextView(@NonNull Context context, @Nullable AttributeSet attrs, int defStyleAttr) {
        super(context, attrs, defStyleAttr);


    }



    public interface ChooseListener{
        void state(boolean choose);
    }

    private ChooseListener chooseListener;

    public void setChooseListener(ChooseListener chooseListener) {
        this.chooseListener = chooseListener;
    }


}
